package com.xiaobu.shop.domain.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.xiaobu.shop.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaobu
 * @since 2023-06-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("shop_car_product")
public class ShopCarProduct extends BaseEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 产品id
     */
    private Long productId;

    /**
     * 购物车id
     */
    private Long carId;

    /**
     * 单品价格
     */
    private BigDecimal productPrice;

    /**
     * 是否为附加品
     */
    private Boolean isAdditional;




}
